package chapter8.poly_.ployarr;

public class Student extends Person {
    private double score;

    public Student(String name, int age, double score) {
        super(name, age);
        this.score = score;
    }

    public double getScore() {
        return score;
    }
    //重写父类的say方法

    @Override
    public void say() {
        super.say();
        System.out.println("score"+score);
    }
    public void Study(){
        System.out.println("学生"+getName()+"学习");
    }
}
